<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>run (Spec::Runner::DrbCommandLine)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File vendor\plugins\rspec/lib/spec/runner/drb_command_line.rb, line 9</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">argv</span>, <span class="ruby-identifier">stderr</span>, <span class="ruby-identifier">stdout</span>, <span class="ruby-identifier">exit</span>=<span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">warn_if_no_files</span>=<span class="ruby-keyword kw">true</span>)
        <span class="ruby-keyword kw">begin</span>
          <span class="ruby-constant">DRb</span>.<span class="ruby-identifier">start_service</span>
          <span class="ruby-identifier">spec_server</span> = <span class="ruby-constant">DRbObject</span>.<span class="ruby-identifier">new_with_uri</span>(<span class="ruby-value str">&quot;druby://localhost:8989&quot;</span>)
          <span class="ruby-identifier">spec_server</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">argv</span>, <span class="ruby-identifier">stderr</span>, <span class="ruby-identifier">stdout</span>)
        <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">DRb</span><span class="ruby-operator">::</span><span class="ruby-constant">DRbConnError</span>
          <span class="ruby-identifier">stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;No server is running&quot;</span>
          <span class="ruby-identifier">exit</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exit</span>
        <span class="ruby-keyword kw">end</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>